home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000338_news@newsmaster….columbia.edu _Mon Aug 3 09:59:12 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA16535
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 3 Aug 1998 09:59:11 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA10332
  7.     for kermit.misc@watsun; Mon, 3 Aug 1998 09:59:11 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: How to set up FTP with Kermit in HP-Ux
  12. Date: 3 Aug 1998 13:59:08 GMT
  13. Organization: Columbia University
  14. Lines: 73
  15. Message-ID: <6q4fnc$d76$1@apakabar.cc.columbia.edu>
  16. References: <6q47u5$c5d$1@nbox.wins.uva.nl>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:9050
  19.  
  20. In article <6q47u5$c5d$1@nbox.wins.uva.nl>,
  21. H.Lieuw <hlieuw@gene.wins.uva.nl> wrote:
  22. :  Hello All
  23. :  I need to set up a slip connection with a remote network in order
  24. :  to ftp to a remote host.
  25. :  How can I do that with kermit?
  26. :  (do you have examples/scripts?)
  27. :  I already ordered the manual "Using C-kermit"
  28. :  however time is pressing, and I need to setup the connection
  29. :  as soon as possible.
  30. You mean, you want to make a SLIP connection from HP-UX to the remote
  31. network?  You can use C-Kermit for your SLIP dialer in this situation,
  32. and there might be some advantages to that (phone-number translation,
  33. automatic redialing, scripting, etc), but once the connection is made,
  34. you still need a way to hand it over to your TCP/IP stack.
  35.  
  36. This is covered in item 27 of the Kermit FAQ:
  37.  
  38.   http://www.columbia.edu/kermit/faq.html
  39.   ftp://kermit.columbia.edu/kermit/faq.txt
  40.  
  41. 27 How Can I Exit from C-Kermit without Hanging Up?
  42.  
  43. Many people want to be able to make a dialout connection with UNIX C-Kermit,
  44. but then use some other software on the connection that C-Kermit made.  For
  45. example, they want to use C-Kermit as their SLIP or PPP dialer.  But they
  46. quickly find that when they exit from C-Kermit, that the connection is gone
  47. before they can start the other application.
  48.  
  49. It is a fundamental property of UNIX (and VMS, and Windows 95 and NT, and
  50. most other modern operating systems) that when a process exits, then every
  51. file that was opened by that process is automatically closed by the
  52. operating system.  In most cases, closing a terminal device (such as a
  53. dialout serial port) hangs up the modem (by turning off the DTR signal).
  54. There is nothing the process can do about it.
  55.  
  56. However, many workarounds are possible.  Here are just a few:
  57.  
  58.    - If your C-Kermit version supports the REDIRECT command, use it to
  59.      start the desired application (e.g. "redirect pppd").  The REDIRECT
  60.      command runs the given application with its standard input and output
  61.      redirected to the communications channel opened by C-Kermit's most
  62.      recent SET LINE or SET HOST command.
  63.  
  64.    - Tell C-Kermit to SET MODEM HANGUP-METHOD RS232, and then configure
  65.      your modem to ignore DTR (not recommended).  "Using C-Kermit", 2nd
  66.      Ed., p.86.
  67.  
  68.    - When opening the device first from another application, feed the file
  69.      descriptor for the device to C-Kermit using the "-l" (lowercase
  70.      letter L) command-line option followed by the numeric file
  71.      descriptor, e.g.  "kermit -l 6".  Then Kermit will not attempt to
  72.      open the device, nor to change its characteristics, nor to close it
  73.      when done, and when Kermit exits, it will still be available to the
  74.      invoking process.  "Using C-Kermit", 2nd Ed., p.469.
  75.  
  76.    - When opening the device with C-Kermit, find out the file descriptor
  77.      of the open device (it is given by C-Kermit's \v(ttyfd) variable) and
  78.      then run ("!")  your other program from the C-Kermit prompt, feeding
  79.      it the file descriptor, e.g. through shell redirection or a command
  80.      line option (the method depends on the other program, the
  81.      capabilities of the shell, etc).  "Using C-Kermit", 2nd Ed., p.356
  82.  
  83.    - In UNIX, after Kermit makes the connection, type "show comm" to find
  84.      out the filename of the lock file.  Then suspend Kermit, delete the
  85.      lock file, then start the other program and tell it to open the same
  86.      tty device.
  87.  
  88. - Frank